package com.terrace.core.spring.ehcache.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 缓存注解
 * @author jiangyg
 *
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD })
public @interface EhCacheable {
	
	/**
	 * 缓存名称--默认为diskCache
	 * @return
	 */
	String name() default "diskCache";
	
	/**
	 * 缓存key
	 * @return
	 */
	String key() default "";
	
}
